function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: 'rowIndex',
      key: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        if (r.companyName == '合计') {
          return ''
        }
        return parseInt(index) + 1
      }
    },
    {
      title: '工作单位',
      align: 'center',
      dataIndex: 'companyName',
      key: 'companyName',
      scopedSlots: { customRender: 'companyName' },
      width: 220,
    },
    {
      title: '集团本部审计人员数量',
      align: 'center',
      dataIndex: 'total',
      key: 'total',
      width: 100
    },
    {
      title: '全员年龄结构（数量）',
      align: 'center',
      children: [
        {
          title: '30岁以下',
          align: 'center',
          dataIndex: 'underThirty',
          key: 'underThirty',
          width: 100
        },
        {
          title: '31~40岁',
          align: 'center',
          dataIndex: 'thirtyFortyOld',
          key: 'thirtyFortyOld',
          width: 100
        },
        {
          title: '41-50岁',
          align: 'center',
          dataIndex: 'fortyFiftyOld',
          key: 'fortyFiftyOld',
          width: 100
        },
        {
          title: '51岁以上',
          align: 'center',
          dataIndex: 'overFiftyOld',
          key: 'overFiftyOld',
          width: 100
        },
      ]
    },
    {
      title: '从事审计工作年限',
      align: 'center',
      children: [
        {
          title: '5年以下',
          align: 'center',
          dataIndex: 'fiveWork',
          key: 'fiveWork',
          width: 100
        },
        {
          title: '5-10年',
          align: 'center',
          dataIndex: 'fiveTenWork',
          key: 'fiveTenWork',
          width: 100
        },
        {
          title: '10-20年',
          align: 'center',
          dataIndex: 'tenTwentyWork',
          key: 'tenTwentyWork',
          width: 100
        },
        {
          title: '20年以上',
          align: 'center',
          dataIndex: 'overTwentyWork',
          key: 'overTwentyWork',
          width: 100
        },
      ]
    },
    {
      title: '全员知识结构（数量）',
      align: 'center',
      children: [
        {
          title: '大专及以下',
          align: 'center',
          dataIndex: 'juniorCollege',
          key: 'juniorCollege',
          width: 100
        },
        {
          title: '本科',
          align: 'center',
          dataIndex: 'undergraduate',
          key: 'undergraduate',
          width: 100
        },
        {
          title: '硕士',
          align: 'center',
          dataIndex: 'master',
          key: 'master',
          width: 100
        },
        {
          title: '博士及以上',
          align: 'center',
          dataIndex: 'doctor',
          key: 'doctor',
          width: 100
        },
      ]
    },
    {
      title: '全员专业结构（数量）',
      align: 'center',
      children: [
        {
          title: '会计',
          align: 'center',
          dataIndex: 'accounting',
          key: 'accounting',
          width: 100
        },
        {
          title: '审计',
          align: 'center',
          dataIndex: 'audit',
          key: 'audit',
          width: 100
        },
        {
          title: '经济学类',
          align: 'center',
          dataIndex: 'economics',
          key: 'economics',
          width: 100
        },
        {
          title: '其他',
          align: 'center',
          dataIndex: 'majorOther',
          key: 'majorOther',
          width: 100
        },
      ]
    },
    {
      title: '全员职称结构（数量）',
      align: 'center',
      children: [
        {
          title: '正高',
          align: 'center',
          dataIndex: 'senior',
          key: 'senior',
          width: 100
        },
        {
          title: '副高',
          align: 'center',
          dataIndex: 'deputySenior',
          key: 'deputySenior',
          width: 100
        },
        {
          title: '中级',
          align: 'center',
          dataIndex: 'intermediate',
          key: 'intermediate',
          width: 100
        },
        {
          title: '初级',
          align: 'center',
          dataIndex: 'primary',
          key: 'primary',
          width: 100
        },
        {
          title: '无职称',
          align: 'center',
          dataIndex: 'nothing',
          key: 'nothing',
          width: 100
        },
      ]
    },
    {
      title: '全员职务结构（数量）',
      align: 'center',
      children: [
        {
          title: '处级',
          align: 'center',
          dataIndex: 'departmentLevel',
          key: 'departmentLevel',
          width: 100
        },
        {
          title: '科级',
          align: 'center',
          dataIndex: 'sectionLevel',
          key: 'sectionLevel',
          width: 100
        },
        {
          title: '其他',
          align: 'center',
          dataIndex: 'titleOthers',
          key: 'titleOthers',
          width: 100
        },
      ]
    },
    {
      title: '全员职业资格证书',
      align: 'center',
      children: [
        {
          title: '注册会计师',
          align: 'center',
          dataIndex: 'certifiedPublicAccountant',
          key: 'certifiedPublicAccountant',
          width: 100
        },
        {
          title: '注册审计师',
          align: 'center',
          dataIndex: 'registeredAuditor',
          key: 'registeredAuditor',
          width: 100
        },
        {
          title: '注册管理会计师',
          align: 'center',
          dataIndex: 'certifiedManagementAccountant',
          key: 'certifiedManagementAccountant',
          width: 100
        },
        {
          title: '注册造价师',
          align: 'center',
          dataIndex: 'registeredCostEngineer',
          key: 'registeredCostEngineer',
          width: 100
        },
        {
          title: '注册建造师',
          align: 'center',
          dataIndex: 'registeredConstructor',
          key: 'registeredConstructor',
          width: 100
        },
        {
          title: '其他',
          align: 'center',
          dataIndex: 'occupationOthers',
          key: 'occupationOthers',
          width: 100
        },
      ]
    },
  ]
  return cols
}

export default columns